export default [
  { prop: 'id', label: '车辆编号', search: { type: 'text', placeholder: '请输入车辆编号' }},
  { prop: 'brandName', label: '车辆品牌', search: { type: 'area', placeholder: '请选择地区' }},
  { prop: 'model', label: '车辆类型' },
  { prop: 'plateNumber', label: '车牌号' },
  { prop: 'temperature', label: '温度' },
  { prop: 'driverid', label: '设备号' },
  { prop: 'status', label: '审核状态', formatter: function(row, colum) {
    switch (row.status) {
      case 0 :
        return '待审核'
      case 1 :
        return '通过'
      case 2:
        return '驳回'
    }
  } },
  { prop: 'cid', label: '承运商' },
  { prop: 'createtime', label: '注册时间' },
  { type: 'handle', fixed: 'right', width: '200', buttons: [
    { text: '详情', type: 'ifno' },
    { text: '通过', type: 'danger', isShow: function(row, rowIndex) { return row.status === 0 } },
    { text: '驳回', type: 'danger', isShow: function(row, rowIndex) { return row.status === 0 } }

  ]
  }
]

